import request from '@/utils/request'

// 查询音乐类型列表
export function listMusictype(query) {
  return request({
    url: '/music/musictype/list',
    method: 'get',
    params: query
  })
}
// 查询音乐类型列表
export function listMusictype2(query) {
  return request({
    url: '/music/musictype/web/list',
    method: 'get',
    params: query
  })
}

// 查询音乐类型详细
export function getMusictype(musicTypeId) {
  return request({
    url: '/music/musictype/' + musicTypeId,
    method: 'get'
  })
}

// 新增音乐类型
export function addMusictype(data) {
  return request({
    url: '/music/musictype',
    method: 'post',
    data: data
  })
}

// 修改音乐类型
export function updateMusictype(data) {
  return request({
    url: '/music/musictype',
    method: 'put',
    data: data
  })
}

// 删除音乐类型
export function delMusictype(musicTypeId) {
  return request({
    url: '/music/musictype/' + musicTypeId,
    method: 'delete'
  })
}
